import { createStore, applyMiddleware } from "redux";
import reducer from "./reducer";
import rootSaga from "./sagas";
import createSagaMiddleware from "../redux-saga";
let sagaMiddleWare = createSagaMiddleware();
let store = applyMiddleware(sagaMiddleWare)(createStore)(reducer);
sagaMiddleWare.run(rootSaga);
export default store;
